package com.renfei.multimediatask.adapter;


import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.renfei.multimediatask.R;
import com.renfei.multimediatask.bean.MenuInfo;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

import java.util.List;

public class VideoInfoAdapter extends BaseQuickAdapter<MenuInfo, BaseViewHolder> {
    public VideoInfoAdapter(@Nullable List<MenuInfo> data) {
        super(R.layout.item_video_info, data);
    }

    @Override
    protected void convert(@NotNull BaseViewHolder baseViewHolder, MenuInfo menuInfo) {


        baseViewHolder
                .setText(R.id.tv_menu_name, menuInfo.getMenuName())
                .setText(R.id.tv_menu_value, menuInfo.getMenuValue());
    }
}
